package com.hzncc.flowable_diboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.entity.BaseModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotNull;

/**
* 区域经纬度对照表 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-08-06
* Copyright © MyCorp
*/

@TableName("mdl_regional_coordinates")
@Getter @Setter @Accessors(chain = true)
public class RegionalCoordinates extends BaseModel {
    private static final long serialVersionUID = 1167989308146107160L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 区域
     */
    @Length(max=100, message="区域长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String area;

    /**
     * 城市
     */
    @Length(max=100, message="城市长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String city;

    /**
     * 国家
     */
    @Length(max=100, message="国家长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String country;

    /**
     * 经度
     */
    @Length(max=30, message="经度长度应小于30")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String lat;

    /**
     * 纬度
     */
    @Length(max=30, message="纬度长度应小于30")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String lng;

    /**
     * 省份
     */
    @Length(max=100, message="省份长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String province;


}